﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200004B RID: 75
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AdventureRoomInfo : IMessage<AdventureRoomInfo>, IMessage, IEquatable<AdventureRoomInfo>, IDeepCloneable<AdventureRoomInfo>, IBufferMessage
	{
		// Token: 0x170000EF RID: 239
		// (get) Token: 0x06000357 RID: 855 RVA: 0x0000ABEB File Offset: 0x00008DEB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AdventureRoomInfo> Parser
		{
			get
			{
				return AdventureRoomInfo._parser;
			}
		}

		// Token: 0x170000F0 RID: 240
		// (get) Token: 0x06000358 RID: 856 RVA: 0x0000ABF2 File Offset: 0x00008DF2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AdventureRoomInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170000F1 RID: 241
		// (get) Token: 0x06000359 RID: 857 RVA: 0x0000AC04 File Offset: 0x00008E04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AdventureRoomInfo.Descriptor;
			}
		}

		// Token: 0x0600035A RID: 858 RVA: 0x0000AC0B File Offset: 0x00008E0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AdventureRoomInfo()
		{
		}

		// Token: 0x0600035B RID: 859 RVA: 0x0000AC14 File Offset: 0x00008E14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AdventureRoomInfo(AdventureRoomInfo other) : this()
		{
			this.sus_ = other.sus_;
			this.status_ = other.status_;
			this.queryInfo_ = ((other.queryInfo_ != null) ? other.queryInfo_.Clone() : null);
			this.caughtMonsterNum_ = other.caughtMonsterNum_;
			this.scoreId_ = other.scoreId_;
			this.remainMonsterNum_ = other.remainMonsterNum_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600035C RID: 860 RVA: 0x0000AC90 File Offset: 0x00008E90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AdventureRoomInfo Clone()
		{
			return new AdventureRoomInfo(this);
		}

		// Token: 0x170000F2 RID: 242
		// (get) Token: 0x0600035D RID: 861 RVA: 0x0000AC98 File Offset: 0x00008E98
		// (set) Token: 0x0600035E RID: 862 RVA: 0x0000ACA0 File Offset: 0x00008EA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public double Sus
		{
			get
			{
				return this.sus_;
			}
			set
			{
				this.sus_ = value;
			}
		}

		// Token: 0x170000F3 RID: 243
		// (get) Token: 0x0600035F RID: 863 RVA: 0x0000ACA9 File Offset: 0x00008EA9
		// (set) Token: 0x06000360 RID: 864 RVA: 0x0000ACB1 File Offset: 0x00008EB1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAdventureRoomStatus Status
		{
			get
			{
				return this.status_;
			}
			set
			{
				this.status_ = value;
			}
		}

		// Token: 0x170000F4 RID: 244
		// (get) Token: 0x06000361 RID: 865 RVA: 0x0000ACBA File Offset: 0x00008EBA
		// (set) Token: 0x06000362 RID: 866 RVA: 0x0000ACC2 File Offset: 0x00008EC2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAdventureRoomGameplayWolfGunInfo QueryInfo
		{
			get
			{
				return this.queryInfo_;
			}
			set
			{
				this.queryInfo_ = value;
			}
		}

		// Token: 0x170000F5 RID: 245
		// (get) Token: 0x06000363 RID: 867 RVA: 0x0000ACCB File Offset: 0x00008ECB
		// (set) Token: 0x06000364 RID: 868 RVA: 0x0000ACD3 File Offset: 0x00008ED3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CaughtMonsterNum
		{
			get
			{
				return this.caughtMonsterNum_;
			}
			set
			{
				this.caughtMonsterNum_ = value;
			}
		}

		// Token: 0x170000F6 RID: 246
		// (get) Token: 0x06000365 RID: 869 RVA: 0x0000ACDC File Offset: 0x00008EDC
		// (set) Token: 0x06000366 RID: 870 RVA: 0x0000ACE4 File Offset: 0x00008EE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScoreId
		{
			get
			{
				return this.scoreId_;
			}
			set
			{
				this.scoreId_ = value;
			}
		}

		// Token: 0x170000F7 RID: 247
		// (get) Token: 0x06000367 RID: 871 RVA: 0x0000ACED File Offset: 0x00008EED
		// (set) Token: 0x06000368 RID: 872 RVA: 0x0000ACF5 File Offset: 0x00008EF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RemainMonsterNum
		{
			get
			{
				return this.remainMonsterNum_;
			}
			set
			{
				this.remainMonsterNum_ = value;
			}
		}

		// Token: 0x06000369 RID: 873 RVA: 0x0000ACFE File Offset: 0x00008EFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AdventureRoomInfo);
		}

		// Token: 0x0600036A RID: 874 RVA: 0x0000AD0C File Offset: 0x00008F0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AdventureRoomInfo other)
		{
			return other != null && (other == this || (ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(this.Sus, other.Sus) && this.Status == other.Status && object.Equals(this.QueryInfo, other.QueryInfo) && this.CaughtMonsterNum == other.CaughtMonsterNum && this.ScoreId == other.ScoreId && this.RemainMonsterNum == other.RemainMonsterNum && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600036B RID: 875 RVA: 0x0000ADA4 File Offset: 0x00008FA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Sus != 0.0)
			{
				num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(this.Sus);
			}
			if (this.Status != RogueAdventureRoomStatus.None)
			{
				num ^= this.Status.GetHashCode();
			}
			if (this.queryInfo_ != null)
			{
				num ^= this.QueryInfo.GetHashCode();
			}
			if (this.CaughtMonsterNum != 0U)
			{
				num ^= this.CaughtMonsterNum.GetHashCode();
			}
			if (this.ScoreId != 0U)
			{
				num ^= this.ScoreId.GetHashCode();
			}
			if (this.RemainMonsterNum != 0U)
			{
				num ^= this.RemainMonsterNum.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600036C RID: 876 RVA: 0x0000AE6E File Offset: 0x0000906E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600036D RID: 877 RVA: 0x0000AE76 File Offset: 0x00009076
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600036E RID: 878 RVA: 0x0000AE80 File Offset: 0x00009080
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Sus != 0.0)
			{
				output.WriteRawTag(17);
				output.WriteDouble(this.Sus);
			}
			if (this.Status != RogueAdventureRoomStatus.None)
			{
				output.WriteRawTag(32);
				output.WriteEnum((int)this.Status);
			}
			if (this.queryInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.QueryInfo);
			}
			if (this.CaughtMonsterNum != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.CaughtMonsterNum);
			}
			if (this.ScoreId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.ScoreId);
			}
			if (this.RemainMonsterNum != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.RemainMonsterNum);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600036F RID: 879 RVA: 0x0000AF54 File Offset: 0x00009154
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Sus != 0.0)
			{
				num += 9;
			}
			if (this.Status != RogueAdventureRoomStatus.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Status);
			}
			if (this.queryInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.QueryInfo);
			}
			if (this.CaughtMonsterNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CaughtMonsterNum);
			}
			if (this.ScoreId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScoreId);
			}
			if (this.RemainMonsterNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RemainMonsterNum);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000370 RID: 880 RVA: 0x0000B008 File Offset: 0x00009208
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AdventureRoomInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Sus != 0.0)
			{
				this.Sus = other.Sus;
			}
			if (other.Status != RogueAdventureRoomStatus.None)
			{
				this.Status = other.Status;
			}
			if (other.queryInfo_ != null)
			{
				if (this.queryInfo_ == null)
				{
					this.QueryInfo = new RogueAdventureRoomGameplayWolfGunInfo();
				}
				this.QueryInfo.MergeFrom(other.QueryInfo);
			}
			if (other.CaughtMonsterNum != 0U)
			{
				this.CaughtMonsterNum = other.CaughtMonsterNum;
			}
			if (other.ScoreId != 0U)
			{
				this.ScoreId = other.ScoreId;
			}
			if (other.RemainMonsterNum != 0U)
			{
				this.RemainMonsterNum = other.RemainMonsterNum;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000371 RID: 881 RVA: 0x0000B0C9 File Offset: 0x000092C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000372 RID: 882 RVA: 0x0000B0D4 File Offset: 0x000092D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 82U)
				{
					if (num == 17U)
					{
						this.Sus = input.ReadDouble();
						continue;
					}
					if (num == 32U)
					{
						this.Status = (RogueAdventureRoomStatus)input.ReadEnum();
						continue;
					}
					if (num == 82U)
					{
						if (this.queryInfo_ == null)
						{
							this.QueryInfo = new RogueAdventureRoomGameplayWolfGunInfo();
						}
						input.ReadMessage(this.QueryInfo);
						continue;
					}
				}
				else
				{
					if (num == 88U)
					{
						this.CaughtMonsterNum = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.ScoreId = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.RemainMonsterNum = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000123 RID: 291
		private static readonly MessageParser<AdventureRoomInfo> _parser = new MessageParser<AdventureRoomInfo>(() => new AdventureRoomInfo());

		// Token: 0x04000124 RID: 292
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000125 RID: 293
		public const int SusFieldNumber = 2;

		// Token: 0x04000126 RID: 294
		private double sus_;

		// Token: 0x04000127 RID: 295
		public const int StatusFieldNumber = 4;

		// Token: 0x04000128 RID: 296
		private RogueAdventureRoomStatus status_;

		// Token: 0x04000129 RID: 297
		public const int QueryInfoFieldNumber = 10;

		// Token: 0x0400012A RID: 298
		private RogueAdventureRoomGameplayWolfGunInfo queryInfo_;

		// Token: 0x0400012B RID: 299
		public const int CaughtMonsterNumFieldNumber = 11;

		// Token: 0x0400012C RID: 300
		private uint caughtMonsterNum_;

		// Token: 0x0400012D RID: 301
		public const int ScoreIdFieldNumber = 12;

		// Token: 0x0400012E RID: 302
		private uint scoreId_;

		// Token: 0x0400012F RID: 303
		public const int RemainMonsterNumFieldNumber = 13;

		// Token: 0x04000130 RID: 304
		private uint remainMonsterNum_;
	}
}
